package controller

import (
	"github.com/gin-gonic/gin"
	"manhe/middleware"
)

//用户模块

//接口：
//1.手机&验证码注册接口;
//2.手机验证码登录接口;
//3.微信授权登录接口;

type UserController struct {
}

func (this *UserController) Router(engine *gin.Engine) {
	u := engine.Group("/user", middleware.JwtToken())
	u.POST("/sms", this.smslogin)
}

// 手机号码注册
func (this *UserController) smslogin(ctx *gin.Context) {

	//接收参数，转化成我们的结构类

	//
}
